import request from '@/utils/request'

// 出勤统计
export const getAttendanceStatistics = () => {
  return request({
    url: '/system/homePage/attendanceStatistics',
    method: 'get'
  })
}
// 工程进度
export const getProjectProgress = () => {
  return request({
    url: '/system/homePage/engineeringProgress',
    method: 'get'
  })
}
// 项目概览
export const getProjectOverview = () => {
  return request({
    url: '/system/homePage/overview',
    method: 'get'
  })
}
// 告警统计
export const getAlarmStatistics = () => {
  return request({
    url: '/system/homePage/alert',
    method: 'get'
  })
}
// 安全统计
export const getSafetyStatistics = (id) => {
  return request({
    url: `/system/homePage/security/${id}`,
    method: 'get'
  })
}
// 进出统计（人员）
export const getEntryExitStatisticsP = () => {
  return request({
    url: '/system/homePage/person-access-record',
    method: 'get'
  })
}
// 进出统计（车辆）
export const getEntryExitStatisticsC = () => {
  return request({
    url: '/system/homePage/car-access-record',
    method: 'get'
  })
}
// 环境监测
export const getEnvironmentalMonitoring = () => {
  return request({
    url: '/system/homePage/environment',
    method: 'get'
  })
}